package com.hsr.web.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author tb
 * @create 2022-04-25 16:18
 * @remark
 */
@Component
public class ServerConfig {
    @Value("${server.port}")
    private int serverPort;

    public String getUrl() {
        return "http://175.178.243.185:"+this.serverPort+"/file/read?path=";
    }

}
